package com.xqboss.apps.domain.punch;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;
import java.time.LocalTime;

/**
 * <p>
 *     打卡规则表 punch_rule
 * </p>
 * @author Trent
 * @date 2023/8/15
 */
@Data
public class PunchRule extends BaseTable {

    private static final long serialVersionUID = 1L;

    /**
     * 钱包ID
     */
    @TableId
    @Id
    private Long id;

    /**
     * 规则名称
     */
    private String name;

    /**
     * 开始时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    private LocalTime startTime;

    /**
     * 结束时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    private LocalTime endTime;


    /**
     * 打卡次数
     */
    @ApiModelProperty("打卡次数")
    private Integer punchCount;


    /**
     * 打卡间隔
     */
    @ApiModelProperty("打卡间隔，单位秒")
    private Integer intervalTime;


    @ApiModelProperty("上下架状态")
    private Boolean saleable;


    @ApiModelProperty("排序")
    private int sort;

}
